How Can I Simplify My JavaScript Palindrome Checker Code

welcome to shbcf.ru